package cn.edu.scau.cmi.shishuai.exercise9;

import java.util.Scanner;

public class Example9_11 {

	public static void main(String[] args) {
		System.out.println("一行文本");
		Scanner reader = new Scanner(System.in);
		String str = reader.nextLine();
		String regex = "[\\s\\d\\p{Punct}]+";
		String words[] = str.split(regex);
		for(int i = 0; i < words.length; i++) {
			int m = i + 1;
			System.out.println("单词" + m + ":" + words[i]);
		}

	}

}
